package cn.jinjimi.app.reader.bean;

import com.google.gson.annotations.SerializedName;

/**
 * Created by lforxeverc on 2017/4.
 */

public class ArticleData {

    public ArticleData(ArticleData data) {
        this.coverUrl = data.coverUrl;
        this.createTime = data.createTime;
        this.id = data.id;
        this.title = data.title;
        this.type = data.type;
        this.shareInfo = data.shareInfo;
    }

    @SerializedName("cover_url")
    private String coverUrl;

    @SerializedName(value = "createTime", alternate = {"create_time", "publish_at"})
    private long createTime;

    @SerializedName("id")
    private String id;

    @SerializedName("title")
    private String title;

    @SerializedName("type")
    private String type;

    @SerializedName("share_info")
    private ShareInfo shareInfo;

    @SerializedName("hasd")
    private boolean hasRead;

    @SerializedName("view_type")
    private int viewType;

    public String getCoverUrl() {
        return coverUrl;
    }

    public long getCreateTime() {
        return createTime;
    }

    public String getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getType() {
        return type;
    }

    public ShareInfo getShareInfo() {
        return shareInfo;
    }

    public boolean isHasRead() {
        return hasRead;
    }

    public void setHasRead(boolean hasRead) {
        this.hasRead = hasRead;
    }

    public int getViewType() {
        return viewType;
    }

    public void setViewType(int viewType) {
        this.viewType = viewType;
    }

    public void setShareInfo(ShareInfo shareInfo) {
        this.shareInfo = shareInfo;
    }
}
